#pragma once

namespace ysimple_network
{
	struct IUDPSession;
	class YEndPoint;

	struct ISendToCallback
	{
		virtual void				onSent(YEndPoint& toEndPoint, IUDPSession& fromSession, bool success, size_t sentLength) = 0;
	};

	struct IRecvFromCallback
	{
		virtual void				onRecved(IUDPSession& toSession, YEndPoint& fromEndPoint, bool success, const char* recvedData, size_t recvedLength) = 0;
	};
	
}